﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BookTransactionModels;

namespace BookTransactionControllers.Services
{
    public interface IVoteServices
    {
        /// <summary>
        /// Calculate average vote of Book
        /// </summary>
        /// <param name="bookID">ID of Book</param>
        /// <returns>Average vote</returns>
        float AvgVote(String bookID);

        /// <summary>
        /// Vote for Book
        /// </summary>
        /// <param name="vote">Point of vote</param>
        /// <param name="bookID">Vote Object</param>
        /// <returns>Excute Ok?</returns>
        bool ExcuteVoteBook(int point, VoteBean vote);
    }
}
